package core;


import core.StdNode;
import core.TransmitterNode;
import core.TriggerPort;

/**
 *
 * @author Wijnand
 */
public class TriggerTransmitterNode extends StdNode implements TransmitterNode {
	TriggerPort trigger;	// in
	DispatcherPort  dispatcher; // out
	
	public TriggerTransmitterNode() {
		this.dispatcher = new DispatcherPort();
		
		this.trigger = new TriggerPort() 
		{
			public void callInternal()
			{
				dispatcher.callTargets();
			}
		};
		
		autoPutPorts();
	}

	public DispatcherPort getDispatcherPort() {
		return dispatcher;
	}

	public TriggerPort getTriggerPort() {
		return trigger;
	}
	
	
}
